package com.leo.mapper;



import com.leo.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;

//员工dao

@Mapper
@Repository
public interface EmployeeMapper {

    //增加一个员工
    void addEmployee(Employee employee);

    //通过id查询员工
    Employee getEmployeeById(Integer id);

    //通过id删除员工
    void deleteById(Integer id);

    //查询所有员工信息
    Collection<Employee> getAll();

    //修改
    void update(Employee employee);

}
